﻿<Application x:Class="TciNewsReader_2014_04.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            >
    <Application.Resources>
        <LinearGradientBrush x:Key="Hbrush" StartPoint="0,0.5" EndPoint="1,0.5">
            <GradientStop Color="Navy" Offset="0.0" />
            <GradientStop Color="PowderBlue" Offset="0.05" />
            <GradientStop Color="LightSteelBlue" Offset="0.25" />
            <GradientStop Color="White" Offset="0.5" />
            <GradientStop Color="Lavender"  Offset="0.985" />
            <GradientStop Color="Navy" Offset="1.0" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CustomGradientGreenEmber" StartPoint="0,0" EndPoint="0,1" >
            <GradientStop Color="#FF007700" Offset="0"/>
            <GradientStop Color="#FF007B00" Offset="0.0285714285714286"/>
            <GradientStop Color="#FF007F00" Offset="0.0571428571428571"/>
            <GradientStop Color="#FF008300" Offset="0.0857142857142857"/>
            <GradientStop Color="#FF008700" Offset="0.114285714285714"/>
            <GradientStop Color="#FF008A00" Offset="0.142857142857143"/>
            <GradientStop Color="#FF008E00" Offset="0.171428571428571"/>
            <GradientStop Color="#FF009200" Offset="0.2"/>
            <GradientStop Color="#FF009600" Offset="0.228571428571429"/>
            <GradientStop Color="#FF009A00" Offset="0.257142857142857"/>
            <GradientStop Color="#FF009E00" Offset="0.285714285714286"/>
            <GradientStop Color="#FF00A200" Offset="0.314285714285714"/>
            <GradientStop Color="#FF00A600" Offset="0.342857142857143"/>
            <GradientStop Color="#FF00AA00" Offset="0.371428571428572"/>
            <GradientStop Color="#FF00AD00" Offset="0.4"/>
            <GradientStop Color="#FF00B100" Offset="0.428571428571429"/>
            <GradientStop Color="#FF00B500" Offset="0.457142857142857"/>
            <GradientStop Color="#FF00B900" Offset="0.485714285714286"/>
            <GradientStop Color="#FF00BD00" Offset="0.514285714285714"/>
            <GradientStop Color="#FF00C100" Offset="0.542857142857143"/>
            <GradientStop Color="#FF00C500" Offset="0.571428571428572"/>
            <GradientStop Color="#FF00C900" Offset="0.6"/>
            <GradientStop Color="#FF00CC00" Offset="0.628571428571429"/>
            <GradientStop Color="#FF00D000" Offset="0.657142857142857"/>
            <GradientStop Color="#FF00D400" Offset="0.685714285714286"/>
            <GradientStop Color="#FF00D800" Offset="0.714285714285714"/>
            <GradientStop Color="#FF00DC00" Offset="0.742857142857143"/>
            <GradientStop Color="#FF00E000" Offset="0.771428571428572"/>
            <GradientStop Color="#FF00E400" Offset="0.8"/>
            <GradientStop Color="#FF00E800" Offset="0.828571428571429"/>
            <GradientStop Color="#FF00EC00" Offset="0.857142857142857"/>
            <GradientStop Color="#FF00EF00" Offset="0.885714285714286"/>
            <GradientStop Color="#FF00F300" Offset="0.914285714285714"/>
            <GradientStop Color="#FF00F700" Offset="0.942857142857143"/>
            <GradientStop Color="#FF00FB00" Offset="0.971428571428572"/>
            <GradientStop Color="#FF00FF00" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="{x:Type ToolTip}" TargetType="ToolTip">
            <!-- Credit for this style goes to: http://angelorohit.blogspot.co.uk/2009/10/custom-tooltip-in-wpf.html-->
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ToolTip">
                        <Border CornerRadius="7" HorizontalAlignment="Center" VerticalAlignment="Top" Padding="5" BorderThickness="3,3,3,3">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#CF181818" Offset="0"/>
                                    <GradientStop Color="#BE1C1C1C" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Border.BorderBrush>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#80FFFFFF" Offset="0"/>
                                    <GradientStop Color="#7FFFFFFF" Offset="1"/>
                                    <GradientStop Color="#FFFFF18D" Offset="0.344"/>
                                    <GradientStop Color="#FFFFF4AB" Offset="0.647"/>
                                </LinearGradientBrush>
                            </Border.BorderBrush>
                            <ContentControl Content="{TemplateBinding Content}"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>
